---
title: Pointer
date: 2025-02-17
description: A component that displays a pointer when hovering over an element
author: h3rmel
published: true
---

<ComponentPreview name="pointer-demo-1" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx shadcn@latest add @magicui/pointer
```

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="pointer" />

<Step>Update the import paths to match your project setup.</Step>

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx showLineNumbers
import { Pointer } from "@/components/ui/pointer"
```

```tsx showLineNumbers
<Pointer />
```
